package com.jz.netthings.bean.system;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 机构信息
 * </p>
 *
 * @author yyy
 * @since 2018-08-01
 */
@TableName(value = "jy_dept")
public class JyDept implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String deptName;
    private Integer deptType;
    private String deptCode;
    private Integer deptLevel;
    private Integer mainPersonLiable;
    private Integer assistPersonLiable;
    private String deptPhone;
    private String deptFax;
    private String deptEmail;
    private String deptDesc;
    private String deptAddress;
    private Integer parentDept;
    @TableField(exist = false)
    private List<JyDept> children;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getDeptType() {
        return deptType;
    }

    public void setDeptType(Integer deptType) {
        this.deptType = deptType;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public Integer getDeptLevel() {
        return deptLevel;
    }

    public void setDeptLevel(Integer deptLevel) {
        this.deptLevel = deptLevel;
    }

    public Integer getMainPersonLiable() {
        return mainPersonLiable;
    }

    public void setMainPersonLiable(Integer mainPersonLiable) {
        this.mainPersonLiable = mainPersonLiable;
    }

    public Integer getAssistPersonLiable() {
        return assistPersonLiable;
    }

    public void setAssistPersonLiable(Integer assistPersonLiable) {
        this.assistPersonLiable = assistPersonLiable;
    }

    public String getDeptPhone() {
        return deptPhone;
    }

    public void setDeptPhone(String deptPhone) {
        this.deptPhone = deptPhone;
    }

    public String getDeptFax() {
        return deptFax;
    }

    public void setDeptFax(String deptFax) {
        this.deptFax = deptFax;
    }

    public String getDeptEmail() {
        return deptEmail;
    }

    public void setDeptEmail(String deptEmail) {
        this.deptEmail = deptEmail;
    }

    public String getDeptDesc() {
        return deptDesc;
    }

    public void setDeptDesc(String deptDesc) {
        this.deptDesc = deptDesc;
    }

    public String getDeptAddress() {
        return deptAddress;
    }

    public void setDeptAddress(String deptAddress) {
        this.deptAddress = deptAddress;
    }

    public Integer getParentDept() {
        return parentDept;
    }

    public void setParentDept(Integer parentDept) {
        this.parentDept = parentDept;
    }

    public List<JyDept> getChildren() {
        return children;
    }

    public void setChildren(List<JyDept> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "JyDept{" +
        "id=" + id +
        ", deptName=" + deptName +
        ", deptType=" + deptType +
        ", deptCode=" + deptCode +
        ", deptLevel=" + deptLevel +
        ", mainPersonLiable=" + mainPersonLiable +
        ", assistPersonLiable=" + assistPersonLiable +
        ", deptPhone=" + deptPhone +
        ", deptFax=" + deptFax +
        ", deptEmail=" + deptEmail +
        ", deptDesc=" + deptDesc +
        ", deptAddress=" + deptAddress +
        ", parentDept=" + parentDept +
        ", children=" + children +
        "}";
    }
}
